package com.atguigu.ssyx.product.service;

import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @author 杨林
 * @create 2023-07-24 14:52 星期一
 * description:
 */
public interface FileUploadService {

    /**
     * 将文件上传到Minio并返回文件的url
     * @param file
     * @return
     */
    String upload(MultipartFile file) throws Exception;
}
